package com.example.first;

import android.app.ListActivity;
import android.os.Bundle;
import android.os.Handler;
import android.widget.SimpleAdapter;

import java.util.ArrayList;
import java.util.HashMap;

public class MyListActivity extends ListActivity {

    Handler handler;
    private ArrayList<HashMap<String,String>> listItems;//存放文字、图片信息
    private SimpleAdapter listItemAdapter;//适配器

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_my_list);
    }

    private void initListView(){
        listItems = new ArrayList<HashMap<String, String>>();
        for (int i = 0;i < 10; i++){
            HashMap<String,String> map = new HashMap<String, String>();
            map.put("ItemTitle","Rate:" + i);//标题文字
            map.put("ItemDetail","detail:" + i);//描述详情
            listItems.add(map);


        }
    }
}